<html>

<head>
    <meta charset="UTF-8">
    <title>免费看视频</title>
    <script>
        function chooseLine(num) {
            var link = document.getElementById('link').value;
            // 			alert(num+link)
            if(num == 1) {
                document.getElementById("video_iframe").src = 'http://www.wmxz.wang/video.php?url=' + link;
            } else if(num == 2) {
                document.getElementById("video_iframe").src = 'http://mt2t.com/yun?url=' + link;
            } else if(num == 3) {
                document.getElementById("video_iframe").src = 'http://www.vipjiexi.com/yun.php?url=' + link;
            } else {
                alert("卧槽！")
            }
        }
    </script>

    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            background-color: #292929;
        }

        .main {
            width: 842px;
            height: 530px;
            margin: 80px auto;
            /*border: #1D7DB1 4px solid;*/
            background-color: #141414;
        }

        .video {
            width: 838px;
            height: 488px;
            margin: 0 auto;
        }

        #video_iframe {
            overflow: hidden;
            width: 100%;
            height: 100%;
            /*background: url(zero.jpeg) no-repeat;*/
            background: #000;
        }

        .choose {
            width: 100%;
            height: 40px;
            margin: 4px 1px;
            background-color: #000;
            border: #611111 1px solid;
        }

        #link {
            margin-top: 3px;
            background-color: #2E2E2E;
            border-color: #2E2E2E;
            border-style: none;
            border-radius: 10px;
            height: 30px;
            outline: none;
            margin-left: 6px;
        }

        .line:hover {
            margin-top: 8px;
            margin-left: 6px;
            background-color: #2E2E2E;
            color: pink;
            /*border-style: none;*/
            outline: none;
            border-radius: 6px;
        }

        h1 {
            color: #fff;
            text-align: center;
        }
    </style>
</head>

<body onkeydown="Keytest(event)" & onkeyup="keyup()">
<h1>地址放下边,然后点击线路！</h1>
<div class="main">
    <div class="video">
        <iframe id="video_iframe" src=""></iframe>
    </div>
    <div class="choose">
        <input type="text" id="link" placeholder="请输入播放地址" />
        <button class="line" onclick="chooseLine(1)">线路1</button>
        <button class="line" onclick="chooseLine(2)">线路2</button>
        <button class="line" onclick="chooseLine(3)">线路3</button>
    </div>
</div>
</body>

</html>
